import axios from "./axios"


let addressinfosModel = {
    query: (params) => {
        return axios({
            method: "get",
            url: "/addressinfos",
            params
        })
    },
    add: (data) => {
        return axios({
            method: "post",
            url: "/addressinfos",
            data
        })
    },
    del: (id) => {
        return axios({
            method: "delete",
            url: "/addressinfos/" + id,
        })
    },
    updata: (id, data) => {
        return axios({
            method: "patch",
            url: "/addressinfos/" + id,
            data
        })
    }


}

export default addressinfosModel